package com.springcloud.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.springcloud.model.SysUser;
import com.springcloud.model.vo.UserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.Map;

/**
 *
 * SysUser 表数据库控制层接口
 *
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

	UserVo selectUserVoById(@Param("id") Long id);

    UserVo selectUserVoByLoginName(@Param("loginName") String loginName);

    List<UserVo> selectUserVoPage(Pagination page, Map<String, Object> params);

}